package com.zzzyh.springproject.mapper;


import com.zzzyh.springproject.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author：郑雨杭
 * @date：2025-01-02 15:09:16
 */
@Mapper
public interface AdminMapper {
    @Select("SELECT * FROM `vueshop_admin` WHERE username = #{userName} AND PASSWORD = #{passWord}")
    public Admin login(String userName, String passWord);

    @Select("SELECT * FROM `vueshop_admin` WHERE username = #{userName}")
    public Admin getAdminByUserName(String userName);
}
